package com.open.capacity.finance.controller;

import com.open.capacity.commons.Result;
import com.open.capacity.finance.entity.SourceBaseAsset;
import com.open.capacity.finance.entity.SourceBaseAssetTotal;
import com.open.capacity.finance.entity.SourceBaseUsecar;
import com.open.capacity.finance.service.SourceBaseAssetService;
import com.open.capacity.finance.service.SourceBaseAssetTotalService;
import com.open.capacity.finance.service.SourceBaseUsecarService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 公务用车
 *
 * @author 
 * @email 
 * @date 2023-04-20 17:41:35
 */
@RestController
@RequestMapping("sourcebaseusecars")
@Api(tags = "公务用车")
public class SourceBaseUsecarController {

    @Autowired
    private SourceBaseUsecarService sourceBaseUsecarService;


    /**
     * 用车月份走势
     */
    @RequestMapping("/listMonth")
    public Result listMonth(@RequestParam Map<String, Object> params) {
        List<SourceBaseUsecar> list = sourceBaseUsecarService.findMonthData(params);
        return Result.succeed(list);
    }


}
